package com.sebarmeli.applogic0;

import com.sebarmeli.applogic.NavigationHelper;

public class NavigationHelper0 extends DriverBasedHelper0 implements NavigationHelper {

  private String baseUrl;

  public NavigationHelper0(ApplicationManager0 manager) {
    super(manager.getWebDriver());
    this.baseUrl = manager.getBaseUrl();
  }
  
  @Override
  public void openMainPage() {
    driver.get(baseUrl);
  }

  @Override
  public void openRelativeUrl(String url) {
    driver.get(baseUrl + url);
  }
}

